#python HTTP server with CGI abilities.
python -m CGIHTTPServer
#default port is 8000 but can be changed like so
python -m CGIHTTPServer 9000

#CGI files must be in cgi-bin folder in web root unless other wise stated